import request from '@/utils/request'

// 查询非遗图片汇总列表
export function listPicture(query) {
  return request({
    url: '/books/picture/list',
    method: 'get',
    params: query
  })
}

// 查询非遗图片汇总详细
export function getPicture(pictureId) {
  return request({
    url: '/books/picture/' + pictureId,
    method: 'get'
  })
}

// 新增非遗图片汇总
export function addPicture(data) {
  return request({
    url: '/books/picture',
    method: 'post',
    data: data
  })
}

// 修改非遗图片汇总
export function updatePicture(data) {
  return request({
    url: '/books/picture',
    method: 'put',
    data: data
  })
}

// 删除非遗图片汇总
export function delPicture(pictureId) {
  return request({
    url: '/books/picture/' + pictureId,
    method: 'delete'
  })
}
